package com.news.service.impl;

import com.news.entity.SysNews;
import com.news.mapper.SysNewsMapper;
import com.news.service.SysNewsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 新闻表 服务实现类
 * </p>
 *
 *
 */
@Service
public class SysNewsServiceImpl extends ServiceImpl<SysNewsMapper, SysNews> implements SysNewsService {

    @Autowired
    SysNewsMapper newsMapper;

    @Override
    public List<SysNews> hotList(Date startTime, Date endTime) {
        return newsMapper.hotList(startTime,endTime);
    }
}
